import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import path from "path";
export default defineConfig({
  plugins: [vue()],
    server: {
      port: 3002,
      headers: {
        'Access-Control-Allow-Origin': '*',
      }
    },
	build: {
		assetsDir: 'static',
		rollupOptions: {
			output: {
			entryFileNames: `static/[name].[hash].js`,
			chunkFileNames: `static/[name].[hash].js`,
			assetFileNames: `static/[name].[hash].[ext]`
			}
		}
	},
	resolve: {
		alias: {
		  "@": path.resolve(__dirname, "src"),
		},
	}
})
